
file(GLOB SRC_FILE *.cpp *.c) # 建立变量SRC_FILE为目录下.cpp文件列表
add_executable (${PROJECT_NAME} ${SRC_FILE}) # 要求编译可执行文件
find_package(Threads)

target_link_libraries(${PROJECT_NAME} ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS})

